//
//  UIView+JRSwizzle.m
//  propertyApp
//
//  Created by lshenrong on 2017/9/22.
//  Copyright © 2017年 Mac-Mini-KingVision. All rights reserved.
//

#import "UIView+JRSwizzle.h"
#import "JRSwizzle.h"

@implementation UIView (JRSwizzle)


+ (void)load
{
    if (IOS_VERSION>=11){
        [NSClassFromString(@"_UIBackButtonContainerView")     jr_swizzleMethod:@selector(addSubview:) withMethod:@selector(iOS11BackButtonNoTextTrick_addSubview:) error:nil];
    }
}
- (void)iOS11BackButtonNoTextTrick_addSubview:(UIView *)view
{
    view.alpha = 0;
    if ([view isKindOfClass:[UIButton class]]) {
        UIButton *button = (id)view;
        [button setTitle:@"" forState:UIControlStateNormal];
    }
    [self iOS11BackButtonNoTextTrick_addSubview:view];
    
}


@end
